import './body.html';
import { Template } from 'meteor/templating';
import '../../components/normal_header/header_not_logined.js'
import '../../components/normal_header/header_logined.js'

Template.App_body.onCreated(function(){
	
});

Template.App_body.onRendered(function(){
	UIBlock.unblock();
	$('.ui.dropdown')
	  .dropdown()
	;

	




});

Template.App_body.helpers({
	isLogined(){
		if (Meteor.userId()) {
			return true;

		}
		return false;
	}
});

Template.App_body.events({
	'click .link_member_abilities'(){
		event.preventDefault();
    event.stopPropagation();
		FlowRouter.go('/member_abilities');
	},
	'click .link_help'(){
		event.preventDefault();
    event.stopPropagation();
		FlowRouter.go('/help');
	}
});
